package com.ruicar.afs.cloud.afscase.loanapprove.vo;

import com.ruicar.afs.cloud.afscase.loanapprove.entity.AddedFinancingItems;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author yk.Li
 * @Date 2020/8/22
 * @Description
 */
@Data
public class AddedFinancingItemsVO extends AddedFinancingItems {
    /**
     * 申请价格
     */
    private BigDecimal applyFinanceItemAmt;
    private List<AddedFinancingItemsVO> children;
    /**
     * 是否合格
     */
    private boolean qualified;

    public void checkStatus(){
        if(this.getAddFinanceAmt().compareTo(applyFinanceItemAmt)==-1){
            this.qualified=false;
        }else{
            this.qualified=true;
        }
    }
}
